tooltip: Remove an unused gdk_surface_get_root_coords call
authorMatthias Clasen <mclasen@redhat.com>
Mon, 25 Mar 2019 02:41:22 +0000 (22:41 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 29 Apr 2019 18:56:00 +0000 (14:56 -0400)
The tx and ty variables are not used, so don't
bother setting them.

gtk/gtktooltip.c

index 22a7e68b1fa7a223046427683814597d975b3d0a..aaf7fab1f5a7356a2866075643b0f467e6d022cd 100644 (file)
@@ -689,8 +689,6 @@ gtk_tooltip_show_tooltip (GdkDisplay *display)
   tooltip = g_object_get_qdata (G_OBJECT (display), quark_current_tooltip);
 
   {
-    gint tx, ty;
-
     surface = tooltip->last_surface;
 
     if (!GDK_IS_SURFACE (surface))
@@ -702,7 +700,6 @@ gtk_tooltip_show_tooltip (GdkDisplay *display)
     x = round (px);
     y = round (py);
 
-    gdk_surface_get_root_coords (surface, x, y, &tx, &ty);
     tooltip_widget = _gtk_widget_find_at_coords (surface, x, y, &x, &y);
   }